<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductsList.ascx.cs"
  Inherits="ProductsList" %>
<style type="text/css">
    .auto-style1 {
        width: 100%;
    }
    .auto-style2 {
        height: 20px;
    }
    .auto-style3 {
        height: 504px;
    }
</style>
<table class="auto-style1">
    <tr>
        <td class="auto-style3">
<asp:DataList ID="list" Runat="server" RepeatColumns="2" EnableViewState="False" OnItemCommand="list_ItemCommand" Height="480px">
  <ItemTemplate>
    <table style=" margin-left:5 px; align: left">
      <tr height="100">
        <td align="center" width="110">
          <a href='Product.aspx?ProductID=<%# Eval("ProductID")%>'>
            <img width="80" src='ProductImages/<%# Eval("Thumbnail") %>' border="0" height="80"/>
          </a>
            <a href='Rate.aspx?ProductID=<%# Eval("ProductID")%>'>
             <img width="80" height="20" src='Images/<%# Eval("Rating") %>' border="0"/>
            </a>
            
        </td>
        <td vAlign="top" width="250">
          <a class="ProductName" href='Product.aspx?ProductID=<%# Eval("ProductID")%>'>
            <%# Eval("Name") %>
          </a>
          <br/>
          <span class="ProductDescription">
            <%# Eval("Description") %>
          <br/>
            Price: 
          </span>
          <span class="ProductPrice">
            <%# Eval("Price", "{0:c}") %>
          </span>
   
            <br />
          <asp:Button ID="addToCartButton" runat="server" Text="Add to Cart" CommandArgument='<%# Eval("ProductID") %>' CssClass="SmallButtonText"/>
       </td>
      </tr>
    </table>
  </ItemTemplate>
</asp:DataList>
        </td>
    </tr>
    <tr>
        <td style="margin: 10px; background-color: #66CCFF; text-align: center; font-size: medium; font-family: tahoma;">
<asp:Label ID="pagingLabel" runat="server" CssClass="PagingText" Visible="False" ForeColor="Black" />
<asp:HyperLink ID="previousLink" runat="server" CssClass="PagingText" Visible="False">Previous</asp:HyperLink>
<asp:HyperLink ID="nextLink" runat="server" CssClass="PagingText" Visible="False">Next</asp:HyperLink>
        </td>
    </tr>
</table>
&nbsp;&nbsp;
&nbsp;&nbsp;

